<?php
namespace App\Api\Transformers;


use App\Api\Model\WallpaperCategoryModel as Model;
use League\Fractal\TransformerAbstract;

class WallpaperCategoryTransformer extends TransformerAbstract
{
    public function transform(Model $Model_obj) {
        return [
            'id' => $Model_obj->id,
            'name' => $Model_obj->name,
            'pid' =>$Model_obj->pid,
            'english_name' => $Model_obj->english_name,
            'num' => $Model_obj->num
        ];
    }
}